package deepr.src.pg;

import deepr.behaviour.RequestDispose;
import deepr.entity.DeeprRequest;
import deepr.entity.DeeprResponse;
import deepr.lib.PgQlLib;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class PgDispose extends RequestDispose {


  public PgDispose() {
    super(new PgDisposeContext(), new PgFilter());
  }


  @Override
  public DeeprResponse list(DeeprRequest deeprRequest) throws Exception {
    String str = PgQlLib.list(getCtx(), deeprRequest);
    log.info("list str:\n{}", str);
    return null;
  }

  @Override
  public DeeprResponse info(DeeprRequest deeprRequest) throws Exception {
    String str = PgQlLib.info(getCtx(), deeprRequest);
    log.info("list str:\n{}", str);
    return null;
  }


}
